﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LAB3_Cv.Default" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceholder" runat="server">
    <div>
        Här kommer lite info.<br/>
        Kanske lite bilder på lyckliga människor som precis fått nytt jobb.<br/>
        Kanske på en fisk?<br/>
        Viktiga saker!<br/><br/>
    </div>
    <div id="ListView">
        <p4><asp:Label ID="LabelAds" runat="server" Text="Lediga tjänster:"></asp:Label>  </p4><br/>
        <asp:Label ID="LabelNoAds" runat="server" Text="Det finns inga annonser!" Visible="False"></asp:Label>
<asp:ListView ID="ListViewAds" runat="server" DataKeyNames="WorkAdId" OnItemCommand="ListViewAds_ItemCommand" >
                 <ItemTemplate>
                        <tr>
                            <td><%# Eval("Proffession")%></td>
                            <td><%# Eval("Duration")%></td>
                            <td><%# Eval("City")%></td>
                            <td><%# Eval("DateAdded")%></td>
                            <td><asp:Button ID="ButtonWorkAd" runat="server" Text="Läs mer"/></td>
                            
                        </tr>
                    </ItemTemplate>
                    <LayoutTemplate>
                        <table id="tableWorkAds" runat="server">
                            <tr id="tr1" runat="server">
                                <td id="td2" runat="server">Yrke:</td>
                                <td id="td3" runat="server">Varaktighet:</td>
                                <td id="td4" runat="server">Ort:</td>
                                <td id="td1" runat="server">Tillagd:</td>
                            </tr>
                            <tr id="ItemPlaceholder" runat="server">  
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:ListView>
        <asp:Label ID="LabelException" runat="server"></asp:Label>
    </div>
</asp:Content>
